package com.lzy.common.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @autor shkstart
 * @create 2021-01-14 16:55)
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class LoginDto implements Serializable {


    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;

}
